// el为string 获取dom  否则返回el
export function query (el) {
  if( typeof el === 'string') {
    const selected = document.querySelector(el)
    if(!selected) {
      return document.createElement('div')
    }
    return selected
  } else {
    return el
  }
}